﻿using System;
using System.Collections.Generic;
using System.Text;

namespace iPdf
{
    class ImageToPdfPage : ActionPage<DestinationItem, object>
    {
        #region Properties

        public override string IntroInfo
        {
            get
            {
                return global::iPdf.Properties.Resources.ImageToPdfPageIntroInfo;
            }
        }

        public override FileFormat SourceFormat
        {
            get
            {
                return FileFormat.Images;
            }
        }

        #endregion

        #region Ctor

        public ImageToPdfPage()
            #if LITE
            :base(true)
            #endif
        {
            visibleColumns.Add(Global.Grid.Destination);
            actor = new ImageConverter();
        }

        protected override DestinationItem GetIthActionItem(TataGrid grid, int i)
        {
            DestinationItem item = new DestinationItem();
            item.Source = (string)grid.Source.GetValueAt(i);
            item.Destination = (string)grid.Destination.GetValueAt(i);

            return item;
        }

        #endregion
    }
}
